package com.spa.infrastructure.service.douyin.result.web;

import lombok.Builder;
import lombok.Data;

import java.util.List;

@Data
@Builder
public class ItemCommentListResult {

    private CommentListData data;

    private Extra extra;

    @Data
    public static class CommentListData {

        //用于下一页请求的cursor
        private long cursor;

        private int error_code;

        private boolean has_more;

        private String description;

        private List<Comment> list;

    }

    @Data
    public static class Comment {

        //评论id
        private String comment_id;

        //该条评论发布者的user_id
        private String comment_user_id;

        //评论的具体内容
        private String content;

        //评论创建的秒级时间戳
        private long create_time;

        //该评论的点赞数
        private int digg_count;

        //该评论的回复数量
        private int reply_comment_total;

        //该评论是否被置顶
        //false-未置顶
        private Boolean top;

        //用户头像url
        private String avatar;

        //用户昵称
        private String nick_name;

    }

    @Data
    private static class Extra {

        private int error_code;

        private int sub_error_code;

        private long now;

        private String description;

        private String sub_description;

        private String logid;

    }
}
